package com.atguigu.gmall.user.client;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.user.client.impl.UserDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author Fxz
 * @version 1.0
 * @date 2022-02-19 16:00
 */
@FeignClient(value = "service-user", fallback = UserDegradeFeignClient.class)
public interface UserFeignClient {

	/**
	 * 跟据用户id查询收货列表
	 */
	@GetMapping("/api/user/inner/findUserAddressListByUserId/{userId}")
	public List<UserAddress> findUserAddressListByUserId(@PathVariable("userId") Long userId);

}
